package com.kanas.webak.rbac.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.kanas.webak.admin.domain.AppUser;
import com.kanas.webak.organization.domain.Organization;
import com.kanas.webak.rbac.domain.AppRole;
import com.kanas.webak.rbac.domain.AppUserRole;

public interface UserRoleRepository extends JpaRepository<AppUserRole, String>{
	
	List<AppUserRole> findByUserAndOrganization(AppUser au, Organization org);
	AppUserRole findByRoleAndUserAndOrganization(AppRole ar, AppUser au, Organization org);
}